CommonEvent 499
Name = "Collab: Demonic Castle Crystal 2"

  999([499])
  PlaySE(["RPG::SE(@name=\"Heal7\", @pitch=100, @volume=80)"])
  FlashScreen(["Color(@red=255.0, @green=255.0, @blue=255.0, @alpha=255.0)", 30, true])
  RecoverAll([0, 0])
  ShowTextAttributes(["", 0, 0, 2])
  ShowText(["The party's HP and MP have been fully recovered!"])
  Script(["unlimited_choices(11, [\"Change Jobs/Races\","])
  ScriptMore(["\"Edit Party\","])
  ScriptMore(["\"Register/Call Party Formation\","])
  ScriptMore(["\"Access Item Storage\", "])
  ScriptMore(["\"Warp\", "])
  ScriptMore(["\"Never mind\"])"])
  ConditionalBranch([1, 11, 0, 0, 0])
    Script(["SceneManager.call(Scene_JobChange)"])
    RecoverAll([0, 0])
    ExitEventProcessing([])
    Empty([])

  BranchEnd([])
  ConditionalBranch([1, 11, 0, 1, 0])
    GatherFollowers([])
    ChangeState([0, 1, 1, 1])
    Script(["call_party_edit"])
    Empty([])

  BranchEnd([])
  ConditionalBranch([1, 11, 0, 2, 0])
    ShowChoices([["Call registered party", "Register current party ", "Cancel"], 3])
    When([0, "登録したパーティを呼び出す"])
      Script(["SceneManager.call(Scene_PartyLoad)"])
      Empty([])

    When([1, "パーティを登録する "])
      Script(["SceneManager.call(Scene_PartySave)"])
      Empty([])

    When([2, "やめる"])
      ExitEventProcessing([])
      Empty([])

    ChoicesEnd([])
    Empty([])

  BranchEnd([])
  ConditionalBranch([1, 11, 0, 3, 0])
    Script(["SceneManager.call(Scene_Storehouse)"])
    ExitEventProcessing([])
    Empty([])

  BranchEnd([])
  ConditionalBranch([1, 11, 0, 4, 0])
    Script(["ex_choice_add(\"Layer 1\",1,\"v[1228] >= 1\",0)"])
    ScriptMore(["ex_choice_add(\"Layer 2\",2,\"v[1228] >= 2\",0)"])
    ScriptMore(["ex_choice_add(\"Layer 3\",3,\"v[1228] >= 3\",0)"])
    ScriptMore(["ex_choice_add(\"Layer 4\",4,\"v[1228] >= 4\",0)"])
    ScriptMore(["ex_choice_add(\"Layer 5\",5,\"v[1228] >= 5\",0)"])
    ScriptMore(["ex_choice_add(\"Layer 6\",6,\"v[1228] >= 6\",0)"])
    ScriptMore(["ex_choice_add(\"Layer 7\",7,\"v[1228] >= 7\",0)"])
    Script(["ex_choice_add(\"Layer 8\",8,\"v[1228] >= 8\",0)"])
    ScriptMore(["ex_choice_add(\"Layer 9\",9,\"v[1228] >= 9\",0)"])
    ScriptMore(["ex_choice_add(\"Layer 10\",10,\"v[1228] >= 10\",0)"])
    ScriptMore(["ex_choice_add(\"Escape\",11)"])
    ScriptMore(["ex_choice_add(\"Cancel\",12)"])
    Script(["ex_choice_show(0,11,[0,0])"])
    ConditionalBranch([1, 9, 0, 1, 0])
      PlaySE(["RPG::SE(@name=\"Magic1\", @pitch=100, @volume=80)"])
      ControlSwitches([100, 100, 1])
      TransferPlayer([0, 922, 50, 113, 2, 1])
      ExitEventProcessing([])
      Empty([])

    BranchEnd([])
    ConditionalBranch([1, 9, 0, 2, 0])
      PlaySE(["RPG::SE(@name=\"Magic1\", @pitch=100, @volume=80)"])
      ControlSwitches([100, 100, 1])
      TransferPlayer([0, 923, 39, 82, 2, 1])
      ExitEventProcessing([])
      Empty([])

    BranchEnd([])
    ConditionalBranch([1, 9, 0, 3, 0])
      PlaySE(["RPG::SE(@name=\"Magic1\", @pitch=100, @volume=80)"])
      ControlSwitches([100, 100, 1])
      TransferPlayer([0, 924, 21, 84, 2, 1])
      ExitEventProcessing([])
      Empty([])

    BranchEnd([])
    ConditionalBranch([1, 9, 0, 4, 0])
      PlaySE(["RPG::SE(@name=\"Magic1\", @pitch=100, @volume=80)"])
      ControlSwitches([100, 100, 1])
      TransferPlayer([0, 925, 23, 33, 2, 1])
      ExitEventProcessing([])
      Empty([])

    BranchEnd([])
    ConditionalBranch([1, 9, 0, 5, 0])
      ConditionalBranch([1, 1216, 0, 2, 0])
        ShowTextAttributes(["", 0, 0, 2])
        ShowText(["Someone's magic is obstructing the transfer...\nIt seems like we can only go up to the 4th layer."])
        ShowText([""])
        ExitEventProcessing([])
        Empty([])

      BranchEnd([])
      PlaySE(["RPG::SE(@name=\"Magic1\", @pitch=100, @volume=80)"])
      ControlSwitches([100, 100, 1])
      TransferPlayer([0, 926, 69, 90, 2, 1])
      ExitEventProcessing([])
      Empty([])

    BranchEnd([])
    ConditionalBranch([1, 9, 0, 6, 0])
      ConditionalBranch([1, 1216, 0, 2, 0])
        ShowTextAttributes(["", 0, 0, 2])
        ShowText(["Someone's magic is obstructing the transfer...\nIt seems like we can only go up to the 4th layer."])
        ShowText([""])
        ExitEventProcessing([])
        Empty([])

      BranchEnd([])
      PlaySE(["RPG::SE(@name=\"Magic1\", @pitch=100, @volume=80)"])
      ControlSwitches([100, 100, 1])
      TransferPlayer([0, 927, 70, 57, 2, 1])
      ExitEventProcessing([])
      Empty([])

    BranchEnd([])
    ConditionalBranch([1, 9, 0, 7, 0])
      ConditionalBranch([1, 1216, 0, 2, 0])
        ShowTextAttributes(["", 0, 0, 2])
        ShowText(["Someone's magic is obstructing the transfer...\nIt seems like we can only go up to the 4th layer."])
        ShowText([""])
        ExitEventProcessing([])
        Empty([])

      BranchEnd([])
      PlaySE(["RPG::SE(@name=\"Magic1\", @pitch=100, @volume=80)"])
      ControlSwitches([100, 100, 1])
      TransferPlayer([0, 928, 52, 96, 2, 1])
      ExitEventProcessing([])
      Empty([])

    BranchEnd([])
    ConditionalBranch([1, 9, 0, 8, 0])
      ConditionalBranch([1, 1216, 0, 2, 0])
        ShowTextAttributes(["", 0, 0, 2])
        ShowText(["Someone's magic is obstructing the transfer...\nIt seems like we can only go up to the 4th layer."])
        ShowText([""])
        ExitEventProcessing([])
        Empty([])

      BranchEnd([])
      PlaySE(["RPG::SE(@name=\"Magic1\", @pitch=100, @volume=80)"])
      ControlSwitches([100, 100, 1])
      TransferPlayer([0, 929, 44, 66, 2, 1])
      ExitEventProcessing([])
      Empty([])

    BranchEnd([])
    ConditionalBranch([1, 9, 0, 9, 0])
      ConditionalBranch([1, 1216, 0, 2, 0])
        ShowTextAttributes(["", 0, 0, 2])
        ShowText(["Someone's magic is obstructing the transfer...\nIt seems like we can only go up to the 4th layer."])
        ShowText([""])
        ExitEventProcessing([])
        Empty([])

      BranchEnd([])
      PlaySE(["RPG::SE(@name=\"Magic1\", @pitch=100, @volume=80)"])
      ControlSwitches([100, 100, 1])
      TransferPlayer([0, 930, 53, 78, 2, 1])
      ExitEventProcessing([])
      Empty([])

    BranchEnd([])
    ConditionalBranch([1, 9, 0, 10, 0])
      ConditionalBranch([1, 1216, 0, 2, 0])
        ShowTextAttributes(["", 0, 0, 2])
        ShowText(["Someone's magic is obstructing the transfer...\nIt seems like we can only go up to the 4th layer."])
        ShowText([""])
        ExitEventProcessing([])
        Empty([])

      BranchEnd([])
      PlaySE(["RPG::SE(@name=\"Magic1\", @pitch=100, @volume=80)"])
      ControlSwitches([100, 100, 1])
      TransferPlayer([0, 931, 7, 15, 2, 1])
      ExitEventProcessing([])
      Empty([])

    BranchEnd([])
    ConditionalBranch([1, 9, 0, 11, 0])
      ShowTextAttributes(["", 0, 0, 2])
      ShowText(["Escape from Château des Romances?"])
      ShowChoices([["Don't escape", "Escape"], 1])
      When([0, "脱出しない"])
        ExitEventProcessing([])
        Empty([])

      When([1, "脱出する"])
        PlaySE(["RPG::SE(@name=\"Magic1\", @pitch=100, @volume=80)"])
        ControlSwitches([100, 100, 1])
        TransferPlayer([0, 2, 328, 187, 2, 1])
        ExitEventProcessing([])
        Empty([])

      ChoicesEnd([])
      Empty([])

    BranchEnd([])
    ExitEventProcessing([])
    Empty([])

  BranchEnd([])
  ExitEventProcessing([])
  Empty([])
